#ifndef _KEY_H_
#define	_KEY_H_

#include "alg_fsm.h"

enum key_status{
    release = 1,
    pressed = 0,
};

enum Key_event{
    idle = 0,
    set_yaw_angle_1,
    set_yaw_angle_2,
};

typedef struct 
{
    enum Key_event  key_event;
    enum Key_event  Last_key_event;
    enum key_status Current_sta;
}Key_struct;

void Key_Init(Key_struct* key);
void Key_Status_FSM(Key_struct *key);
#endif

